package com.yao.system.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "job_resume")
public class JobResume {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField(value = "job_id")
    private Long jobId;
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField(value = "job_user_id")
    private Long jobUserId;
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField("resume_id")
    private Long resumeId;
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField("resume_user_id")
    private Long resumeUserId;
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
